{% load tagging_tags comments i18n %}

<div class="entryHeader span-16 last">
  <h2 class="entryTitle">
    <a href="{{ object.get_absolute_url }}" title="{{ object.title }}">
      {{ object.title }}
    </a>
  </h2>
  <p class="entryInfo">
    {% trans "Written by" %} 
    {% for author in object.authors.all %}
    <a href="{% url zinnia_author_detail author %}" title="{% blocktrans with author as author %}Show {{ author }} entries{% endblocktrans %}">
      <strong>{{ author }}</strong>
    </a>{% if not forloop.last %}, {% endif %}
    {% endfor %}
    {% trans "on date" %} {{ object.creation_date|date:"d F Y"|capfirst }}
    {% trans "in" %} 
    {% for category in object.categories.all %}
    <a href="{{ category.get_absolute_url }}" title="{{ category }}">
      <em>{{ category }}</em>
    </a>
    {% if not forloop.last %}, {% endif %}
    {% endfor %}.
  </p>
</div>

<div class="entryBody span-16 last">
  {% if object.image %}
  <div class="entryImage">
    <p>
      <a href="{{ object.get_absolute_url }}">
	<img src="{{ object.image.url }}" alt="{{ object.title }}" class="left" />
      </a>
    </p>
  </div>
  {% endif %}
  <div class="entryContent">
    {{ object_content }}
  </div>
</div>

<div class="entryFooter">
  <p class="entryTags span-16 last">
    <strong>{% trans "Tags" %}</strong> :
    {% tags_for_object object as tag_list %}
    {% for tag in tag_list %}  
    <a href="{% url zinnia_tag_detail tag %}" title="Tag {{ tag }}">
      {{ tag }}
    </a>
    {% empty %}
    <span>{% trans "No tags" %}</span>
    {% endfor %}
  </p>

  <p class="entryShortUrl span-16 last">
    <strong>{% trans "Short url" %}</strong> : 
    {% if object.short_url %}
    <a href="{{ object.short_url }}" title="{{ object.title }}">
      {{ object.short_url }}
    </a>
    {% else %}
    {% trans "Unavailable" %}
    {% endif %}
  </p>
  
  <p class="entryComments span-16 last">
    <strong>{% trans "Comments" %}</strong> : 
    {% with object.comments.count as comment_count %}
    {% if comment_count %}
    <a href="{{ object.get_absolute_url }}#comments" title="{{ object.title }}">
      {% blocktrans count comment_count as comment_count %}{{ comment_count }} comment{% plural %}{{ comment_count }} comments{% endblocktrans %}
    </a>
    {% else %}
      {% if object.comment_enabled %}
      {% trans "Not yet comments." %}
    <a href="{{ object.get_absolute_url }}#comments" title="{{ object.title }}">
      {% trans "Be first to comment !" %}
    </a>
      {% else %}
      {% trans "Comments are closed." %}
      {% endif %}
    {% endif %}
    {% endwith %}
  </p>
</div>


